package cn.haohaowo.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;

@Component
public class SomeHService {
	
	@Autowired
	private SomeService someService;
	
	@HystrixCommand(fallbackMethod="getHSome")
	public String getSome() {
		return someService.getSome();
	}
	
	public String getHSome() {
		return "getsome service failed!";
	}

}
